package com.cdhk.mapper;

import com.cdhk.dto.IbaValueDTO;
import com.ty.basic.entity.part.PartDO;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import com.cdhk.entity.TestMappingDO;

import java.math.BigInteger;
import java.util.List;

/**
 * Description XML SQL映射层Mapper
 * @auther: xxx
 * @date: xxx
 */
@Repository
public interface CommonMapper extends Mapper<TestMappingDO> {
    PartDO queryLatestPartByNumberAndView(@Param("number")String number, @Param("viewName") String viewName, @Param("state")String state);

    List<String> queryLatestPartByClassIdAndSpec(@Param("classficationOid") BigInteger classficationOid, @Param("materialSpec")String materialSpec);

    List<String> queryIbaValueByOids(@Param("ids")List<BigInteger> ids);
}